/*
* @Date: 2021/1/23
* @Author: XueChengwu <xuechengwu@erayt.com>
* @Copyright: 2015-2019 Erayt, Inc.
* @Description: If you have some questions, please contact: xuechengwu@erayt.com.
*/

export default {
  display: 'inline-block',
  props: [{
    key: 'allowClear',
    type: 'boolean',
    label: '清除',
  }, {
    key: 'autoClearSearchValue',
    type: 'boolean',
    label: '多选清空',
  }, {
    key: 'bordered',
    type: 'boolean',
    label: '边框',
  }, {
    key: 'defaultValue',
    type: 'array|string',
    label: '默认值',
  }, {
    key: 'disabled',
    type: 'boolean',
    label: '禁用',
  }, {
    key: 'filterTreeNode',
    type: 'boolean',
    label: '输入筛选',
  }, {
    key: 'listHeight',
    type: 'number',
    label: '滚动高度',
  }, {
    key: 'loadData',
    type: 'function',
    function: '(node)',
    label: '异步加载',
  }, {
    key: 'multiple',
    type: 'boolean',
    label: '多选',
  }, {
    key: 'placeholder',
    type: 'string',
    label: '提示词',
  }, {
    key: 'showArrow',
    type: 'boolean',
    label: '下拉箭头',
  }, {
    key: 'showSearch',
    type: 'boolean',
    label: '搜索支持',
  }, {
    key: 'size',
    type: 'select',
    options: ['large', 'middle', 'small'],
    label: '大小',
  }, {
    key: 'treeCheckable',
    type: 'boolean',
    label: '可选',
  }, {
    key: 'treeData',
    type: 'array',
    arrayType: 'value:取值,title:标题,children:下级',
    label: '数据源',
  }, {
    key: 'treeDefaultExpandAll',
    type: 'boolean',
    label: '节点展开',
  }, {
    key: 'treeExpandedKeys',
    type: 'array',
    label: '展开节点',
  }, {
    key: 'treeNodeFilterProp',
    type: 'string',
    label: '过滤字段',
  }, {
    key: 'treeNodeLableProp',
    type: 'string',
    label: 'prop设置',
  }, {
    key: 'value',
    type: 'array|string',
    label: '选中值',
  }, {
    key: 'virtual',
    type: 'boolean',
    label: '虚拟滚动',
  }, {
    key: 'onChange',
    type: 'function',
    function: '(value, lable, extra)',
    label: '变化回调',
  }, {
    key: 'onSearch',
    type: 'function',
    function: '(value)',
    label: '搜索回调',
  }, {
    key: 'onSelect',
    type: 'function',
    function: '(value, node, extra)',
    label: '选中回调',
  }, {
    key: 'onTreeExpand',
    type: 'function',
    function: '(expandedKeys)',
    label: '展开回调',
  }]
}
